package com.tarena.all;

import java.util.Scanner;

public class MethodDemo {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入数字a");
		int a = sc.nextInt();
		System.out.println("请输入数字b");
		int b = sc.nextInt();
		//System.out.println(a + b);
		int sum = addtion(a,b);//实际参数；
		//int sum;
		System.out.println("sum1 = " + sum);
		System.out.println("结束");
	}
	public static int addtion(int a, int b){//形式参数
		int sum = a + b;
		//System.out.println("sum = " + sum);
		return sum;
	}
}
